using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using HengTong.Model.Db.Hr;


namespace HengTong.ViewModel.Person.SysPersonSocialSecurityVms
{
    public partial class SysPersonSocialSecurityTemplateVm : BaseTemplateVM
    {
        [Display(Name = "员工")]
        public ExcelPropety PersonExcel = ExcelPropety.CreateProperty<SysPersonSocialSecurity>(x => x.PersonId);
        [Display(Name = "社保方案")]
        public ExcelPropety SchemeExcel = ExcelPropety.CreateProperty<SysPersonSocialSecurity>(x => x.SchemeId);
        [Display(Name = "社保编号")]
        public ExcelPropety SocialSecurityNoExcel = ExcelPropety.CreateProperty<SysPersonSocialSecurity>(x => x.SocialSecurityNo);
        [Display(Name = "公积金账号")]
        public ExcelPropety HousingFundAccountExcel = ExcelPropety.CreateProperty<SysPersonSocialSecurity>(x => x.HousingFundAccount);
        [Display(Name = "参保日期")]
        public ExcelPropety EnrollmentDateExcel = ExcelPropety.CreateProperty<SysPersonSocialSecurity>(x => x.EnrollmentDate);
        [Display(Name = "参保状态")]
        public ExcelPropety StatusExcel = ExcelPropety.CreateProperty<SysPersonSocialSecurity>(x => x.Status);
        [Display(Name = "缴费年月")]
        public ExcelPropety PaymentMonthExcel = ExcelPropety.CreateProperty<SysPersonSocialSecurity>(x => x.PaymentMonth);
        [Display(Name = "备注")]
        public ExcelPropety RemarkExcel = ExcelPropety.CreateProperty<SysPersonSocialSecurity>(x => x.Remark);

	    protected override void InitVM()
        {
            PersonExcel.DataType = ColumnDataType.ComboBox;
            PersonExcel.ListItems = DC.Set<SysPerson>().GetSelectListItems(Wtm, y => y.Name);
            SchemeExcel.DataType = ColumnDataType.ComboBox;
            SchemeExcel.ListItems = DC.Set<SysPersonSocialSecurityScheme>().GetSelectListItems(Wtm, y => y.SchemeName);
        }

    }

    public class SysPersonSocialSecurityImportVm : BaseImportVM<SysPersonSocialSecurityTemplateVm, SysPersonSocialSecurity>
    {

    }

}
